package com.shxt.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shxt.mapper.UserMapper;
import com.shxt.model.User;
import com.shxt.service.UserService;
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;
	@Override
	public List<User> list(Map<String, Object> map) {
		return userMapper.list(map);
	}
	@Override
	public int count(Map<String, Object> map) {
		return userMapper.count(map);
	}
	@Override
	public User load(Integer user_id) {
		return userMapper.load(user_id);
	}
	@Override
	public int delete(Integer user_id) {
		return userMapper.delete(user_id);
	}
	@Override
	public int add(User user) {
		return userMapper.add(user);
	}
	@Override
	public int update(User user) {
		return userMapper.update(user);
	}
	@Override
	public int account(String user_account) {
		return userMapper.account(user_account);
	}
	@Override
	public int identity(String user_identity) {
		return userMapper.identity(user_identity);
	}

}
